<template>
  <div class="header header-top">
    <div class="container navbar-nav">
      <div class="left">
        <span><img src="../../../assets/images/common/telephone.png" /></span>
        <span class="qwq">
          <router-link to="/">{{ phone }}</router-link>
        </span>
      </div>
      <div class="right">
        <span class="qwq">
          <router-link
            v-for="(item, index) in NavTopCpnData"
            :key="index"
            :to="item.url"
            >{{ item.name }}</router-link
          >
        </span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "NavTopCpn",
  props: {
    phone: String,
    NavTopCpnData: Array,
  },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.header {
  z-index: 9999;
  width: 100%;
  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    box-sizing: border-box;
    padding-right: 10px;
    padding-left: 10px;
    width: 1000px;
    height: 70px;
    .left {
      span {
        position: relative;
        font-weight: 300;
        margin: 5px;
        img {
          position: absolute;
          left: -15px;
          width: 21px;
        }
      }
      .qwq {
        a {
          display: inline;
          color: #efefef;
          letter-spacing: 0px;
          font-size: 18px;
          text-decoration: none;
        }
      }
    }
    .right {
      display: flex;
      justify-content: space-between;
      .qwq {
        a {
          display: inline;
          color: #efefef;
          letter-spacing: 0px;
          font-size: 16px;
          text-decoration: none;
          margin: 7px;
        }
      }
    }
  }
}

// 背景颜色设置
.header-top {
  background: #2b3e4c;
}

a:hover {
  color: #31c46c !important;
}
</style>
